import request from '@/utils/request'

// 查询部门列表
export function getDepartment(data) {
  return request({
    url: '/api/system/getDepartment',
    method: 'post',
    data: data
  })
}

export function updateDept(data) {
  return request({
    url: '/api/system/updateDept',
    method: 'post',
    data: data
  })
}

export function addDept(data) {
  return request({
    url: '/api/system/addDept',
    method: 'post',
    data: data
  })
}

export function deleteDept(data) {
  return request({
    url: '/api/system/deleteDept',
    method: 'post',
    data: data
  })
}